﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucTopNews.ascx.cs" Inherits="TTMarketing.UserControl.ucTopNews" %>
<asp:ObjectDataSource ID="odsNews" runat="server" SelectMethod="getTop" 
    TypeName="TTBusiness.ClassProject.clsBSBusiness">
    <SelectParameters>
        <asp:Parameter DefaultValue="2" Name="top" Type="Int32" />
    </SelectParameters>
</asp:ObjectDataSource>
<telerik:RadListView ID="RadListView1" runat="server" DataSourceID="odsNews" 
    BorderWidth="0px" ItemPlaceholderID="ph">
    <LayoutTemplate>
        <asp:PlaceHolder runat="server" id="ph" />
    </LayoutTemplate>
    <ItemTemplate>
         <table width="100%" id="Product-l">
            <tr>
                <td align="center">
                    <asp:ImageButton ID="ImageButton1" runat="server" Height="100px" 
                        ImageUrl='<%# "~/Image/Upload/" +Eval("Image") %>' 
                        PostBackUrl='<%# "~/tin-tuc-ao-thuat.aspx?id="+Eval("ID") %>' Width="100px" />
                </td>
            </tr>
            <tr>
                <td align="center">
                    <a href='<%# "/tin-tuc-ao-thuat.aspx?id="+Eval("ID") %>'>
                    <%# Eval("Title") %>
                    </a>
                </td>
            </tr>
            <tr>
                <td align="center" valign="top" style="height:60px" >
                    <%# Eval("Summary").ToString().Length > 60 ? Eval("Summary").ToString().Substring(0, 59)+"..." : Eval("Summary").ToString()%>
                </td>
            </tr>
        </table>
    </ItemTemplate>
    <EmptyDataTemplate>
        <div class="RadListView RadListView_Default">
            <div class="rlvEmpty">
                There are no items to be displayed.</div>
        </div>
    </EmptyDataTemplate>
    
</telerik:RadListView>
<a href="tin-tuc-ao-thuat.aspx?typeid=1">Xem nhiều hơn >></a>

